package org.bedracket.pgeg.init;

import net.minecraftforge.common.capabilities.Capability;
import net.minecraftforge.common.capabilities.CapabilityManager;
import net.minecraftforge.common.capabilities.CapabilityToken;
import net.minecraftforge.common.capabilities.RegisterCapabilitiesEvent;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod;
import org.bedracket.pgeg.capability.ManaLevelCapability;

@Mod.EventBusSubscriber
public class ModCapabilities {

    public static Capability<ManaLevelCapability> PLAYER_MANA_LEVEL =
            CapabilityManager.get(new CapabilityToken<>(){});

    @SubscribeEvent
    public static void registryCapability(RegisterCapabilitiesEvent event){
        event.register(ManaLevelCapability.class);
    }
}
